
void BSTree :: inorderDisplay(Node *root)
{//cout<<"3";
         if(root != NULL)
         {          
             inorderDisplay(root->left);
            cout<<"  "<<root->data;
            inorderDisplay(root->right);
         }
         else
                 return ;
 
 }
void BSTree :: inorderDisplay()
{
     cout<<"\n\ninorder Display\n";
     inorderDisplay(root);
}
void BSTree :: preorderDisplay(Node *root)
{
     if(root != NULL)
     {
          cout<<" "<<root->data;
          preorderDisplay(root->left);
          preorderDisplay(root->right);        
     }
     else
          return;
}
void BSTree :: preorderDisplay()
{
     cout<<"\n\npreorder Display\n";
     preorderDisplay(root);
}
void BSTree :: postorderDisplay(Node *root)
{
     if(root != NULL)
     {
             postorderDisplay(root->left);
             postorderDisplay(root->right);
             cout<<"  "<<root->data;
     }
}
void BSTree :: postorderDisplay()
{
     cout<<"\n\npostorder Display\n";
     postorderDisplay(root);
}
